<?php
require_once('../../libraryfiles/config.php');
if($_GET['email'])
{
	$email_from = $_GET['email'];
}
else
{
	$email_from = 'sales@khm.co';
	$email_from .= 'socheat.ngann@mapring.com';
}
if($_GET['fname'])
{
	$first_name = $_GET['fname'];
}
if($_GET['lname'])
{
	$last_name = $_GET['lname'];
} 
if($_GET['id'])
{
	$id = $_GET['id'];
} 
?>
<?php
    function clean_string($string) {
      $bad = array("content-type","bcc:","to:","cc:","href");
      return str_replace($bad,"",$string);
    }
	
 	$name = $first_name;
    $recipient = $email_from;
    $subject = "Hello ".$name;
	$headers  = 'MIME-Version: 1.0' . "\r\n";
	$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
	$headers .= 'From: KHM active your account <sales@khm.co>' . "\r\n";
    //begin of HTML message
    $message = 'Click on this link to activate your account: <a href="http://demo.khm.co/includefiles/email/confirm.php?confirm='.$activate.'&id='.$id.'" target="_blank">Active Now!</a>';


    mail($recipient, $subject, $message, $headers);
	//header('Location:../../login.php?message=Your Confirmation link Has Been Sent To '.$email_from.' Email Address....!');
echo 'ok';
?>